< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/03100400.xhp

(section: cdbl) (bookmark: bm_id3153750)
CDbl function

CDbl 関数

CDbl Function [Runtime]
CDbl 関数 [実行時](hd_id3153750.1)

Converts any numerical expression or string expression to a double type.
文字列および数値表式を、倍精度の数値データに変換します。(par_id3149233.2)

(/section: cdbl)

Syntax
構文(hd_id3149516.3)

CDbl (Expression)
CDbl (Expression)(par_id3156152.4)

Return value
戻り値(hd_id3153061.5)

Double
倍精度(par_id3145068.6)

Parameters:
パラメータ:(hd_id3154760.7)

Expression: Any string or numeric expression that you want to convert. To convert a string expression, the number must be entered as normal text ("123.5") using the default number format of your operating system.
Expression: 日付データに変換する文字列および数値表式。また文字列を変換する場合は、オペレーティングシステムが標準で使用する数の書式 (「123.5」など) でテキストを指定する必要があります。(par_id3153897.8)

(embed text/sbasic/shared/00000003.xhp#errorcode : linkinfo)

Error Codes

エラーコード(hd_id3152869.37)

(/embed text/sbasic/shared/00000003.xhp#errorcode)

(embed text/sbasic/shared/00000003.xhp#err5 : linkinfo)

5 Invalid procedure call
5 無効なプロシージャー呼び出しです (par_id3150891.41)

(/embed text/sbasic/shared/00000003.xhp#err5)

Example:
例:(hd_id3148797.9)

Sub ExampleCountryConvert
Sub ExampleCountryConvert(par_id3154217.10)

Msgbox CDbl(1234.5678)
Msgbox CDbl(1234.5678)(par_id3147229.11)

Msgbox CInt(1234.5678)
Msgbox CInt(1234.5678)(par_id3151042.12)

Msgbox CLng(1234.5678)
Msgbox CLng(1234.5678)(par_id3150616.13)

end sub
end sub(par_id3153969.14)


< Prev / Next >